# 创建类
class Restaurant:
    """模拟餐馆"""
    def __init__(self,restaurant_name,cuisine_type):
        """初始化描述餐馆属性"""
        self.restaurant_name = restaurant_name
        self.cuisine_type = cuisine_type
        self.number_served = 0

    def describe_restaurant(self):
        """显示餐馆信息摘要概述"""
        msg = f"{self.restaurant_name.title()} serves wonderful {self.cuisine_type.title()}."
        print(f"\n{msg}")

    def open_restaurant(self):
        """显示一条消息，指出餐馆正在营业"""
        msg = f"{self.restaurant_name.title()} is open. Come on in!"
        print(f"\n{msg}")

    def set_number_served(self,served):
        """设置就餐人数"""
        self.number_served += served

    def increment_number_served(self,number):
        """让就餐人数递增"""
        if number >= 0:
            self.number_served += number
        else:
            print("增加的数字不能为负数")
# 创建实例
restaurant = Restaurant("ludvig's bistro", 'seafood')
restaurant.set_number_served(10)
print(f"有{restaurant.number_served}人在这家餐馆就餐")
restaurant.increment_number_served(20)
print(f"有{restaurant.number_served}人在这家餐馆就餐")